home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Views / Standard Arrangements / GrowArrangement.h < prev    next >
Text File  |  1997-06-28  |  2KB  |  62 lines

  1. // GrowArrangement.h
  2.  
  3. #ifndef GrowArrangement_h
  4. #define GrowArrangement_h
  5.  
  6. #ifndef Arrangement_h
  7. #include "Arrangement.h"
  8. #endif
  9. #ifndef SolidView_h
  10. #include "SolidView.h"
  11. #endif
  12. #ifndef GrowBox_h
  13. #include "GrowBox.h"
  14. #endif
  15.  
  16. class GrowArrangement: public Arrangement<6>
  17.   {
  18.     private:
  19.         SolidView rightLine;
  20.         SolidView bottomLine;
  21.         GrowBox grow;
  22.         
  23.         enum { barSize = 15 };
  24.         
  25.     protected:
  26.         virtual void Arrange( Rectangle );
  27.     
  28.     public:
  29.         GrowArrangement( WindowFocus& );
  30.         
  31.         const Pane& Grow() const                    { return (*this)[0]; }
  32.         const Pane& RightLine() const                { return (*this)[1]; }
  33.         const Pane& Right() const                    { return (*this)[2]; }
  34.         const Pane& BottomLine() const            { return (*this)[3]; }
  35.         const Pane& Bottom() const                    { return (*this)[4]; }
  36.         const Pane& Main() const                    { return (*this)[5]; }
  37.         
  38.         ArrangedPane& Grow()                            { return (*this)[0]; }
  39.         ArrangedPane& RightLine()                    { return (*this)[1]; }
  40.         ArrangedPane& Right()                        { return (*this)[2]; }
  41.         ArrangedPane& BottomLine()                    { return (*this)[3]; }
  42.         ArrangedPane& Bottom()                        { return (*this)[4]; }
  43.         ArrangedPane& Main()                            { return (*this)[5]; }
  44.         
  45.         virtual uint16 MinimumWidth() const;
  46.         virtual uint16 MinimumHeight() const;
  47.         
  48.         virtual uint16 MaximumWidth() const;
  49.         virtual uint16 MaximumHeight() const;
  50.  
  51.         virtual uint16 ReasonableWidth() const;
  52.         virtual uint16 ReasonableHeight() const;
  53.         
  54.         virtual uint16 BestWidth() const;
  55.         virtual uint16 BestWidth( uint16 bound ) const;
  56.         
  57.         virtual uint16 BestHeight() const;
  58.         virtual uint16 BestHeight( uint16 bound ) const;
  59.   };
  60.  
  61. #endif
  62.